package com.qyhl.webtv.commonlib.entity.news;

import com.qyhl.webtv.basiclib.utils.StringUtils;

import java.io.Serializable;

/**
 * Created by qyhl on 2017/11/30.
 * 乡镇，政务，专题列表页模型
 */

public class UnionBean implements Serializable {
    public String id;//栏目id
    public String innercode;
    public String name;
    public String parentid;
    public String logo;
    public String type;
    public String appstyle;
    public String isleaf;
    public String appparam;
    public boolean isSelected;

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getInnercode() {
        return innercode;
    }

    public void setInnercode(String innercode) {
        this.innercode = innercode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentid() {
        return parentid;
    }

    public void setParentid(String parentid) {
        this.parentid = parentid;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getType() {
        if (StringUtils.isEmpty(type)) {
            return "0";
        } else {
            return type;
        }
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAppstyle() {
        return appstyle;
    }

    public void setAppstyle(String appstyle) {
        this.appstyle = appstyle;
    }

    public String getIsleaf() {
        return isleaf;
    }

    public void setIsleaf(String isleaf) {
        this.isleaf = isleaf;
    }

    public String getAppparam() {
        return appparam;
    }

    public void setAppparam(String appparam) {
        this.appparam = appparam;
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }
}
